package cn.fntop.entity;

import com.baomidou.mybatisplus.annotation.*;
import lombok.Builder;
import lombok.Data;

import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * @TableName user
 */
@TableName(value = "user")
@Data
@Builder
public class User implements Serializable {
    /**
     *
     */
    @TableId
    private Long id;

    /**
     *
     */
    private String username;

    /**
     *
     */
    private String mobile;

    /**
     *
     */
    private Integer tenantId;

    /**
     *
     */
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdTime;

    /**
     *
     */
    @TableField(fill = FieldFill.UPDATE)
    private LocalDateTime updatedTime;

    private Integer delFlag;

    @Version
    private Integer version;

    @TableField(exist = false)
    private static final long serialVersionUID = 1L;
}